.vin-step {
  flex: 1;
  font-size: 0;
  text-align: center;
  &-head {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
  }
  &-line {
    position: absolute;
    top: 11px;
    right: -50%;
    left: 50%;
    display: inline-block;
    height: 1px;
    background: $steps-base-line-color;
  }
  &-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: $steps-base-icon-width;
    height: $steps-base-icon-height;
    font-size: $steps-base-icon-font-size;
    line-height: $steps-base-icon-line-height;
    .vin-icon {
      width: 100%;
      height: 100%;
    }
    &.is-text {
      border-style: solid;
      border-width: 1px;
      border-radius: 50%;
    }
    &.is-icon {
      background-color: transparent;
      border-style: solid;
      border-width: 1px;
      border-radius: 50%;
    }
  }
  &-main {
    display: inline-block;
    padding-right: 10%;
    padding-left: 10%;
    text-align: center;
  }
  &-title {
    display: block;
    margin-bottom: $steps-base-title-margin-bottom;
    color: $steps-base-title-color;
    font-size: $steps-base-title-font-size;
  }
  &-content {
    display: block;
    color: $steps-base-content-color;
    font-size: $steps-base-content-font-size;
  }
  &:last-child {
    .vin-step-line {
      display: none;
    }
  }
  &.vin-step-finish {
    .vin-step-head {
      color: $steps-finish-head-color;
      border-color: $steps-finish-head-border-color;
    }
    .vin-step-icon.is-text {
      background-color: $steps-finish-icon-text-color;
    }
    .vin-step-icon.is-icon {
      background-color: $steps-finish-icon-text-color;
    }
    .vin-step-line {
      background: $steps-finish-line-background;
    }
    .vin-step-title {
      color: $steps-finish-title-color;
    }
  }
  &.vin-step-process {
    .vin-step-head {
      color: $steps-process-head-color;
      border-color: $steps-process-head-border-color;
    }
    .vin-step-icon.is-text {
      background-color: $steps-process-icon-text-color;
    }
    .vin-step-icon.is-icon {
      background-color: $steps-process-icon-text-color;
    }
    .vin-step-title {
      color: $steps-process-title-color;
    }
  }
  &.vin-step-wait {
    .vin-step-head {
      color: $steps-wait-head-color;
      border-color: $steps-wait-head-border-color;
    }
    .vin-step-icon.is-text {
      background-color: $steps-wait-icon-bg-color;
    }
    .vin-step-icon.is-icon {
      background-color: $steps-wait-icon-bg-color;
      .vin-icon {
        color: $steps-wait-icon-color;
      }
    }
    .vin-step-content {
      color: $steps-wait-content-color;
    }
  }
}
.vin-steps-vertical {
  .vin-step {
    display: flex;
    height: 33.34%;
  }
  .vin-step-line {
    position: absolute;
    display: inline-block;
    width: 1px;
    height: 100%;
    background: #909ca4;
  }
  .vin-step-main {
    display: inline-block;
    padding-left: 6%;
    text-align: left;
  }
  &.vin-steps-dot {
    .vin-step-head {
      margin-top: 7px;
      margin-bottom: 0;
    }
    .vin-step-line {
      top: 7px;
      right: -50%;
      left: 50%;
    }
    .vin-step-icon {
      box-sizing: content-box;
      width: 8px;
      height: 8px;
      background: $primary-color;
      border-radius: 50%;
    }
    .vin-step-wait {
      .vin-step-icon {
        background-color: $steps-wait-icon-bg-color;
      }
      .vin-step-content {
        color: $steps-wait-content-color;
      }
    }
    .vin-step-finish {
      .vin-step-icon {
        background-color: $primary-color;
      }
    }
    .vin-step-process {
      .vin-step-icon {
        position: relative;
        background-color: $primary-color;
        &::before {
          position: absolute;
          top: 50%;
          left: 50%;
          display: inline-block;
          width: 14px;
          height: 14px;
          margin-top: -7px;
          margin-left: -7px;
          background-color: $primary-color-end;
          border-radius: 50%;
          opacity: 0.23;
          content: '';
        }
      }
    }
  }
}
